<!DOCTYPE html>
<html lang="en">
   <head>
      <meta charset="utf-8">
      <title>20140923_2</title>
      <script src="js/w0923_1.js"></script>
   </head>
   <body>
	<script>
		//var 변수명
		var value=10;
		value += 20;
		document.write("value 값 ="+value+"<br>");
		document.write("typeof value 값 ="+typeof value+"<br>");
		document.write("typeof {} 값 ="+typeof {}+"<br>");
		document.write("typeof function(){} ="+typeof function(){}+"<br><hr/>");
		//변수를 선언(값을 할당x)만 하고 확인하면 undefined.
		
		var value="hello";
		document.write("value값 : "+value+"<br>");
		document.write("typeof value 값 ="+typeof value+"<br>");
		document.write("typeof function(){} 값 ="+typeof function(){}+"<br>");
		document.write("typeof {} 값 ="+typeof {}+"<br>");
		document.write("typeof a 값 ="+typeof a+"<br>");
	</script>      
   </body>
</html>